package com.mindether.llyblog.pojo;

import java.util.List;

public class ApiPageResponse<T> {
    //总共多少页
    private long total;
    //一共多少记录
    private long size;
    private int pageSize;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    private List<T> rows;
    public ApiPageResponse() {
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public ApiPageResponse(long total, List<T> rows) {

        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {

        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
